package StudyCode.summary.mycollection;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetsASetContainingAllOfTheEntriesFromTheSetsProvided {
	private static Set<String> unionSets(final List<Set<String>> sets) {
		final Set<String> union = new HashSet<String>();
		for (final Set<String> set : sets) {
			union.addAll(set);
		}
		return union;
	}
}
